package com.ht.dao;

import com.ht.bean.Emp;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;
import java.util.Map;

public interface NommsgDao {

    @Select("select * from emp e,dep d,dept de where e.depId = d.depid and  e.empId = #{e.empId} limit 1")
    List<Map> selectEmpMsg(Integer empId);

    @Update("update emp set password = #{password} where empId = #{empId}")
    boolean UpdateEmpPsw(Emp emp);

}
